Xbasic

OBJECT.ToolbarControlEnable Function

Syntax

.Toolbarcontrolenable(n index ,l enable )

Arguments

index

The number of the control bar item. The leftmost item is number 1.

enable

Optional. Logical

.T. = Enable
.F. = Disable

Description

Enables or disalbes an item in the control bar.

The <OBJECT>.ToolbarControlEnable() method applies to:

  • Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)

  • Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)

The <OBJECT>.ToolbarControlEnable() method enables or disables the specified item on the control bar.

Example

dim frm as P
frm = form.view("Customer Information")
frm.toolbarchange("Query")
frm.toolbarcontrolenable(10,.f.)

Limitations

Desktop applications only.

See Also